package com.andy.module.ext

import android.app.Activity
import android.content.Context
import android.content.Intent

/**
 * @creator:LuoFan
 * @date:2022/6/1
 * @description:
 */
fun Context.startActivity(cls: Class<*>) {
    val intent = Intent(this, cls)
    startActivity(intent)
}

fun Activity.startActivityForResult(cls: Class<*>, rqCode: Int) {
    val intent = Intent(this, cls)
    startActivityForResult(intent, rqCode)
}
